Optimal. Leaf size=32 \[ \frac{\tanh ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{b}-\frac{\tan ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0278043, antiderivative size = 32, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.294, Rules used = {2621, 329, 298, 203, 206} \[ \frac{\tanh ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{b}-\frac{\tan ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2621
Rule 329
Rule 298
Rule 203
Rule 206
Rubi steps
\begin{align*} \int \sqrt{\csc (a+b x)} \sec (a+b x) \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{\sqrt{x}}{-1+x^2} \, dx,x,\csc (a+b x)\right )}{b}\\ &=-\frac{2 \operatorname{Subst}\left (\int \frac{x^2}{-1+x^4} \, dx,x,\sqrt{\csc (a+b x)}\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sqrt{\csc (a+b x)}\right )}{b}-\frac{\operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sqrt{\csc (a+b x)}\right )}{b}\\ &=-\frac{\tan ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{b}+\frac{\tanh ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{b}\\ \end{align*}
Mathematica [A] time = 0.0262676, size = 47, normalized size = 1.47 \[ \frac{\sqrt{\sin (a+b x)} \sqrt{\csc (a+b x)} \left (\tan ^{-1}\left (\sqrt{\sin (a+b x)}\right )+\tanh ^{-1}\left (\sqrt{\sin (a+b x)}\right )\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.471, size = 28, normalized size = 0.9 \begin{align*}{\frac{1}{b}{\it Artanh} \left ( \sqrt{\sin \left ( bx+a \right ) } \right ) }+{\frac{1}{b}\arctan \left ( \sqrt{\sin \left ( bx+a \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.50672, size = 55, normalized size = 1.72 \begin{align*} -\frac{2 \, \arctan \left (\frac{1}{\sqrt{\sin \left (b x + a\right )}}\right ) - \log \left (\frac{1}{\sqrt{\sin \left (b x + a\right )}} + 1\right ) + \log \left (\frac{1}{\sqrt{\sin \left (b x + a\right )}} - 1\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.27863, size = 274, normalized size = 8.56 \begin{align*} \frac{2 \, \arctan \left (\frac{\sin \left (b x + a\right ) - 1}{2 \, \sqrt{\sin \left (b x + a\right )}}\right ) + \log \left (\frac{\cos \left (b x + a\right )^{2} + \frac{4 \,{\left (\cos \left (b x + a\right )^{2} - \sin \left (b x + a\right ) - 1\right )}}{\sqrt{\sin \left (b x + a\right )}} - 6 \, \sin \left (b x + a\right ) - 2}{\cos \left (b x + a\right )^{2} + 2 \, \sin \left (b x + a\right ) - 2}\right )}{4 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\csc{\left (a + b x \right )}} \sec{\left (a + b x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20699, size = 66, normalized size = 2.06 \begin{align*} \frac{{\left (2 \, \arctan \left (\sqrt{\sin \left (b x + a\right )}\right ) + \log \left (\sqrt{\sin \left (b x + a\right )} + 1\right ) - \log \left ({\left | \sqrt{\sin \left (b x + a\right )} - 1 \right |}\right )\right )} \mathrm{sgn}\left (\sin \left (b x + a\right )\right )}{2 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]